<?php
/**
 * 页面底部
 * @author jqrr
 *
 */
class footWidget extends Widget {
	public function render($data) {
		//获取友情链接
		$sql="select * from ".DQ."connectsys where connectsys7=".$data["linkid"];
		
		$data["rslink"]=M()->query($sql);
		
		//获取帮助信息
		$sql="select classsys0,classsys1 from ".DQ."classsys where classsys3=611 order by classsys4 desc";
		$crs=M()->query($sql);
		$rarr=array();
		$i=0;
		foreach ($crs as $v){
			$sql="select info0,info1 from ".DQ."info where info2=".$v["classsys0"]." and info8=1212 order by info11 desc limit 0,4";
			$rarr[$i]["title"]=$v["classsys1"];
			$rarr[$i]["id"]=$v["classsys0"];
			$rarr[$i]["c"]=M()->query($sql);	
			$i++;
		}
		$data["rshelp"]=$rarr;
		
		
		
		
		$c= $this->renderFile("foot", $data);
		return $c;
		
		
	}
	
}


?>